import request from '@/utils/request';
const suffix = '/api/high/inventory/';
/* --------------高库存--------------------- */
/**
 * @name 获取详情版报表
 * @param {
	"businessCategories": [],
	"cities": [],
	"commodity": "",
	"commodityName": "",
	"date": "",
	"goodsCategoriesFour": [],
	"goodsCategoriesOne": [],
	"goodsCategoriesThree": [],
	"goodsCategoriesTwo": [],
	"pageNo": 0,
	"pageSize": 0,
	"regions": [],
	"stores": []
}
 * */
export const DGetReport = data => request({ // api/high/inventory/details/getReport
  url: `${suffix}details/getReport`,
  method: 'post',
  data: data
});
/**
 * @namespace 获取商品版报表
 * @param {
	"businessCategories": [],
	"cities": [],
	"commodity": "",
	"commodityName": "",
	"date": "",
	"goodsCategoriesFour": [],
	"goodsCategoriesOne": [],
	"goodsCategoriesThree": [],
	"goodsCategoriesTwo": [],
	"pageNo": 0,
	"pageSize": 0,
	"regions": [],
	"stores": []
}
 * */
export const GGetReport = data => request({ // api/high/inventory/goods/getReport
  url: `${suffix}goods/getReport`,
  method: 'post',
  data: data
});
/**
 * @namespace 获取城市部门大类报表
 *@param {
	"businessCategories": [],
	"cities": [],
	"commodity": "",
	"commodityName": "",
	"date": "",
	"export": 0,
	"goodsCategoriesFour": [],
	"goodsCategoriesOne": [],
	"goodsCategoriesThree": [],
	"goodsCategoriesTwo": [],
	"levels": "",
	"regions": [],
	"stores": [],
	"type": 0
}
 * */
export const CyGetReport = data => request({ // /api/high/inventory/citysDepartsTypes/getReport
  url: `${suffix}citysDepartsTypes/getReport`,
  method: 'post',
  data: data
});
/**
 * @namespace 获取大区城市门店报表
 *@param {
	"businessCategories": [],
	"cities": [],
	"commodity": "",
	"commodityName": "",
	"date": "",
	"export": 0,
	"goodsCategoriesFour": [],
	"goodsCategoriesOne": [],
	"goodsCategoriesThree": [],
	"goodsCategoriesTwo": [],
	"levels": "",
	"regions": [],
	"stores": [],
	"type": 0
}
 * */
export const ReGetReport = data => request({ // /api/high/inventory/regionsCitysStores/getReport
  url: `${suffix}regionsCitysStores/getReport`,
  method: 'post',
  data: data
});
/**
 * @namespace 城市部门大类报表导出
 *@param {
	"businessCategories": [],
	"cities": [],
	"commodity": "",
	"commodityName": "",
	"date": "",
	"export": 0,
	"goodsCategoriesFour": [],
	"goodsCategoriesOne": [],
	"goodsCategoriesThree": [],
	"goodsCategoriesTwo": [],
	"levels": "",
	"regions": [],
	"stores": [],
	"type": 0
}
 * */
export const CyExport = data => request({ // api/high/inventory/citysDepartsTypes/export
  url: `${suffix}citysDepartsTypes/export`,
  method: 'post',
  responseType: 'blob',
  data: data
});
/**
 * @namespace 大区城市门店报表导出
 *@param {
	"businessCategories": [],
	"cities": [],
	"commodity": "",
	"commodityName": "",
	"date": "",
	"export": 0,
	"goodsCategoriesFour": [],
	"goodsCategoriesOne": [],
	"goodsCategoriesThree": [],
	"goodsCategoriesTwo": [],
	"levels": "",
	"regions": [],
	"stores": [],
	"type": 0
}
 * */
export const ReExport = data => request({ // api/high/inventory/citysDepartsTypes/export
  url: `${suffix}regionsCitysStores/export`,
  method: 'post',
  responseType: 'blob',
  data: data
});
/**
 * @namespace 导出详情版版报表
 *@param {
	"businessCategories": [],
	"cities": [],
	"commodity": "",
	"commodityName": "",
	"date": "",
	"downType": 0,
	"goodsCategoriesFour": [],
	"goodsCategoriesOne": [],
	"goodsCategoriesThree": [],
	"goodsCategoriesTwo": [],
	"pageNo": 0,
	"pageSize": 0,
	"regions": [],
	"stores": []
}
 * */
export const DeExportReport = data => request({ // api/high/inventory/details/exportReport
  url: `${suffix}details/exportReport`,
  method: 'post',
  responseType: 'blob',
  data: data
});
/**
 * @namespace 导出商品版报表
 *@param {
	"businessCategories": [],
	"cities": [],
	"commodity": "",
	"commodityName": "",
	"date": "",
	"downType": 0,
	"goodsCategoriesFour": [],
	"goodsCategoriesOne": [],
	"goodsCategoriesThree": [],
	"goodsCategoriesTwo": [],
	"pageNo": 0,
	"pageSize": 0,
	"regions": [],
	"stores": []
}
 * */
export const GoExportReport = data => request({ // api/high/inventory/goods/exportReport
  url: `${suffix}goods/exportReport`,
  method: 'post',
  responseType: 'blob',
  data: data
});
